import 'dart:math';

import 'package:chathouse/pages/expert/buyWallet/recharge_bank_card.dart';
import 'package:chathouse/pages/expert/buyWallet/wallet_cer_feedback_detail.dart';
import 'package:chathouse/util/base_utils.dart';
import 'package:flutter/material.dart';
import 'package:chathouse/public/Config.dart';
import '../../../model/wallet_cel.dart';
import '../../../widgets/base_appbar.dart';
import '../../base/base.dart';

class WalletCerfeedBackType extends BaseStatefulWidget {
  String id;
  String version;
  WalletCerfeedBackType(this.id,this.version,{Key? key}) : super(key: key);

  @override
  // ignore: no_logic_in_create_state
  _WalletCerfeedBackTypeState createState() => _WalletCerfeedBackTypeState(id,version);
}

class _WalletCerfeedBackTypeState
    extends BaseStatefulWidgetState<WalletCerfeedBackType> {
  String id;
  String version;
  _WalletCerfeedBackTypeState(this.id,this.version);
  @override
  void initState() {
    // TODO: implement initState
    super.initState();
    setState(() {
      updateState(LoadState.success);
    });
  }

  void feedback(int type) {
    Get.to(WalletCerFeedbackDetail(type,id,version));
  }

  @override
  Widget viewPageBody() {
    // TODO: implement viewPageBody
    return Scaffold(
      appBar: getAppBar(title: "反饋"),
      body: SafeArea(
        child: Column(
          children: [
            SizedBox(height: 16.w),
            Container(
              height: 1,
              color: Styles.c_f5f5f7,
            ),
            InkWell(
              onTap: () => {feedback(1)},
              child: Padding(
                padding: EdgeInsets.symmetric(horizontal: 16.w, vertical: 20.w),
                child: Row(
                  mainAxisAlignment: MainAxisAlignment.spaceBetween,
                  children: [
                    Text(
                      "驗證通過,未收到代幣",
                      style: getTextStyle(18.sp,
                          color: Colors.black, fontType: FontType.BOLD),
                    ),
                    // SizedBox(width: 8.w),
                    const Icon(
                      Icons.chevron_right,
                      color: Styles.c_999,
                      size: 16,
                    ),
                  ],
                ),
              ),
            ),
            Container(
              height: 1,
              color: Styles.c_f5f5f7,
            ),
            InkWell(
              onTap: () => {feedback(2)},
              child: Padding(
                padding: EdgeInsets.symmetric(horizontal: 16.w, vertical: 20.w),
                child: Row(
                  mainAxisAlignment: MainAxisAlignment.spaceBetween,
                  children: [
                    Text(
                      "驗證未通過",
                      style: getTextStyle(18.sp,
                          color: Colors.black, fontType: FontType.BOLD),
                    ),
                    // SizedBox(width: 8.w),
                    const Icon(
                      Icons.chevron_right,
                      color: Styles.c_999,
                      size: 16,
                    ),
                  ],
                ),
              ),
            ),
            Container(
              height: 1,
              color: Styles.c_f5f5f7,
            ),
            InkWell(
              onTap: () => {feedback(3)},
              child: Padding(
                padding: EdgeInsets.symmetric(horizontal: 16.w, vertical: 20.w),
                child: Row(
                  mainAxisAlignment: MainAxisAlignment.spaceBetween,
                  children: [
                    Text(
                      "其它",
                      style: getTextStyle(18.sp,
                          color: Colors.black, fontType: FontType.BOLD),
                    ),
                    // SizedBox(width: 8.w),
                    const Icon(
                      Icons.chevron_right,
                      color: Styles.c_999,
                      size: 16,
                    ),
                  ],
                ),
              ),
            ),
            Container(
              height: 1,
              color: Styles.c_f5f5f7,
            ),
          ],
        ),
      ),
    );
  }
}
